DevForce Help Reference
RemoveEntities(Type,EntityState,Nullable<Boolean>) Method


Entity type
Entity state(s)
Whether removing these entities should also cause the QueryCache to be cleared. The default 'null' value allows DevForce to make this determination based on the entities being removed.
Removes entities of the specified type and EntityState from the EntityManager cache.
Syntax
'Declaration
 
Public Overloads Sub RemoveEntities( _
   ByVal entityType As Type, _
   ByVal entityState As EntityState, _
   Optional ByVal clearQueryCache As Nullable(Of Boolean) _
) 
'Usage
 
Dim instance As EntityManager
Dim entityType As Type
Dim entityState As EntityState
Dim clearQueryCache As Nullable(Of Boolean)
 
instance.RemoveEntities(entityType, entityState, clearQueryCache)

Parameters

entityType
Entity type
entityState
Entity state(s)
clearQueryCache
Whether removing these entities should also cause the QueryCache to be cleared. The default 'null' value allows DevForce to make this determination based on the entities being removed.
Remarks
The IEntity objects will be in a "detached" state after the remove. RemoveEntity and EntityAspect.RemoveFromManager can be used interchangeably

The query cache should normally be cleared after removing an entity from the entity cache, since removing an entity can invalidate the usefulness of the query cache and lead to incorrect query results. You can choose not to clear the query cache if you know that removing the entity will not cause problems.

This does not delete the entities from the backend data source. To delete an entity, use the IdeaBlade.EntityModel.Entity.Delete() method.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntityManager Class
EntityManager Members
Overload List
Clear Method

Send Feedback